package utility;

import java.util.Arrays;

public class DataFilter {

	/*
	 * 
	 * 
	 */
	public static final boolean isexisted(String[] str, String[][] str_arr)
	{
		/*
		 * to check where the str is existed in the array
		 * 
		 */
		for(int i = 0; i < str_arr.length ; i++)
		{
			if(Arrays.deepEquals(str_arr[i], str))
			{
				return true;
			}
		}
		return false;
	}
	public static final boolean isexisted(String str, String[] str_arr)
	{
		/*
		 * to check where the str is existed in the array
		 * 
		 */
		for(int i = 0; i < str_arr.length ; i++)
		{
			if(str.equals(str_arr[i]))
			{
				return true;
			}
		}
		return false;
	}
}
